package com.xhtt.modules.cfg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhtt.modules.cfg.entity.CfgTubeInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 硬管库 Mapper 接口
 * </p>
 *
 * @author feipc
 * @since 2019-02-21
 */
public interface CfgTubeInfoMapper extends BaseMapper<CfgTubeInfo> {

    List<CfgTubeInfo> queryPage(Page<CfgTubeInfo> page, @Param(value = "ps") Map<String, Object> params);

    void updateUsed(@Param(value = "upTubeIds") List<Integer> upTubeIds);

    void flushProduct(@Param(value = "tubeIdList") List<Integer> tubeIdList);

    void updateCurProduct(@Param(value = "upTubeIds")List<Integer> upTubeIds, @Param(value = "productId")Integer productId, @Param(value = "productName")String productName);
}
